Skip to main content
Version: 2.x.x

WebsocketClientOptionsType


import { WebsocketClientOptionsType } from "@hyper-fetch/sockets"

Description

Defined in client/client.types.ts:24

Preview

type WebsocketClientOptionsType = {
heartbeat: boolean;
heartbeatMessage: string;
pingTimeout: number;
pongTimeout: number;
protocols: string[];
reconnectTimeout: number;
}

Structure

{
heartbeat: boolean;
heartbeatMessage: string;
pingTimeout: number;
pongTimeout: number;
protocols: string[];
reconnectTimeout: number;
}